package com.huangliusong.desigin.pattern.creational.builder;

/**
 * @author huangliusong
 * @since 2018/10/10
 * {@link CourseBuilder}
 */
public class Coach {
    private CourseBuilder courseBuilder;

    public void setCourseBuilder(CourseBuilder courseBuilder) {
        this.courseBuilder = courseBuilder;
    }

    public Course makeCourse(String courseName,
                             String coursePPT,
                             String courseVideo,
                             String courseArticle,
                             String courseOA){
        this.courseBuilder.builderCourseArticle(courseArticle);
        this.courseBuilder.builderCourseName(courseName);
        this.courseBuilder.builderCourseOA(courseOA);
        this.courseBuilder.builderCoursePPT(coursePPT);
        this.courseBuilder.builderCourseVideo(courseVideo);
        return this.courseBuilder.makeCourse();
    }
}
